package com.six.business.service;

import com.six.business.vo.BusinessVo;
import com.six.core.entity.Business;
import com.baomidou.mybatisplus.extension.service.IService;
import com.six.core.vo.Result;


/**
* @author 汪鹏
* @description 针对表【sto_business】的数据库操作Service
* @createDate 2023-02-27 14:26:44
*/
public interface BusinessService extends IService<Business> {

    Result findApproval(int currentPage, int pageSize, BusinessVo businessVo);

    Result findUnreviewed(int currentPage, int pageSize, BusinessVo businessVo);

    Result addBusiness(Business business);

    /** 前台商家中心获取商家信息 */
    Result getBusinessByUserId(Integer userId);

    /**  前台商家中心修改商家信息 */
    Result updateBusiness(Business business);
}
